home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / include / dv.h < prev    next >
C/C++ Source or Header  |  2001-10-08  |  2KB  |  63 lines

  1. //------------------------------------------------------------------------------
  2. // File: DV.h
  3. //
  4. // Desc: DV typedefs and defines
  5. //
  6. // Copyright (c) 1997-2001, Microsoft Corporation.  All rights reserved.
  7. //------------------------------------------------------------------------------
  8.  
  9.  
  10. #ifndef _DV_H_
  11. #define _DV_H_
  12.  
  13. #define DV_DVSD_NTSC_FRAMESIZE  120000L
  14. #define DV_DVSD_PAL_FRAMESIZE   144000L
  15.  
  16. #define DV_SMCHN        0x0000e000
  17. #define DV_AUDIOMODE    0x00000f00
  18. #define DV_AUDIOSMP     0x38000000
  19.  
  20. #define DV_AUDIOQU      0x07000000
  21. #define DV_NTSCPAL      0x00200000
  22. #define DV_STYPE        0x001f0000
  23.  
  24.  
  25. //There are NTSC or PAL DV camcorders  
  26. #define DV_NTSC         0
  27. #define DV_PAL          1
  28.  
  29. //DV camcorder can output sd/hd/sl  
  30. #define DV_SD           0x00
  31. #define DV_HD           0x01
  32. #define DV_SL           0x02
  33.  
  34. //user can choice 12 bits or 16 bits audio from DV camcorder
  35. #define DV_CAP_AUD16Bits    0x00
  36. #define DV_CAP_AUD12Bits    0x01
  37.  
  38. #define SIZE_DVINFO     0x20    
  39.  
  40. typedef struct Tag_DVAudInfo
  41. {
  42.     BYTE    bAudStyle[2];           
  43.  
  44.     //LSB 6 bits for starting DIF sequence number
  45.     //MSB 2 bits: 0 for mon. 1: stereo in one 5/6 DIF sequences, 2: stereo audio in both 5/6 DIF sequences
  46.     //example: 0x00: mon, audio in first 5/6 DIF sequence
  47.     //                 0x05: mon, audio in 2nd 5 DIF sequence
  48.     //                 0x15: stereo, audio only in 2nd 5 DIF sequence
  49.     //                 0x10: stereo, audio only in 1st 5/6 DIF sequence
  50.     //                 0x20: stereo, left ch in 1st 5/6 DIF sequence, right ch in 2nd 5/6 DIF sequence
  51.     //                 0x26: stereo, rightch in 1st 6 DIF sequence, left ch in 2nd 6 DIF sequence
  52.     BYTE    bAudQu[2];                      //qbits, only support 12, 16,           
  53.         
  54.     BYTE    bNumAudPin;                     //how many pins
  55.     WORD    wAvgSamplesPerPinPerFrm[2];     //sample size for one audio pin in one frame(which has 10 or 12 DIF sequence)
  56.     WORD    wBlkMode;                       //45 for NTSC, 54 for PAL
  57.     WORD    wDIFMode;                       //5  for NTSC, 6 for PAL
  58.     WORD    wBlkDiv;                        //15  for NTSC, 18 for PAL
  59.     
  60. } DVAudInfo;
  61.       
  62. #endif // _DV_H_
  63.